#ifndef GY_CATEGORYTREESETVALDLG_H
#define GY_CATEGORYTREESETVALDLG_H

#include <QDialog>
#include <QJsonArray>
#include <QMap>
namespace Ui {
class GY_CategoryTreeSetValDlg;
}

class GY_CategoryTreeSetValDlg : public QDialog
{
    Q_OBJECT

public:
    explicit GY_CategoryTreeSetValDlg(QJsonArray columnsValue, QVector<QVector<QVariant>> nodes, QWidget *parent = nullptr);
    ~GY_CategoryTreeSetValDlg();
    QJsonArray getColumnsValue() const;  //获取设置的数据

private slots:
    void setPid();  //设置pid
    void on_pushButton_accept_clicked();

    void on_pushButton_reject_clicked();

private:
    Ui::GY_CategoryTreeSetValDlg *ui;
    QJsonArray columnsValue;  //设置的数据
    QVector<QVector<QVariant>> nodes;  //树形节点数据
    int pidRow = -1;  //pid所在行号
    QString oldPid;  //pid原始值
    int nameRow = -1;  //name所在行号
    QString oldName;  //name原始值
};

#endif // GY_CATEGORYTREESETVALDLG_H
